
from main.monitor.workerstatus import QueryOBSWorker


def get_data_from_obs_workers():
    query_obs_worker = QueryOBSWorker()
    obs_workers_ip = query_obs_worker.get_all_worker_list()
    print(obs_workers_ip)

    for ip in obs_workers_ip:
        ret = query_obs_worker.get_monitor_value("mem", ip, 30)
        print(ret)


if __name__ == "__main__":
    get_data_from_obs_workers()